<?php
session_start();
include($_SERVER["DOCUMENT_ROOT"]."/public/function.php");
$config = include($_SERVER["DOCUMENT_ROOT"]."/public/config.php");

$arl = sele($config,'zuopin','','author');
$arll = sele($config,'fenlei');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>my blog</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />

<link href="s3slider.css" rel="stylesheet" type="text/css" />
<!-- JavaScripts-->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/s3Slider.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $('#slider').s3Slider({
            timeOut: 1600
        });
    });
</script>
</head>
<body>

<div id="templatemo_wrapper">

    <div id="templatemo_menu">
                
        <ul>
            <li><a href="index.php" class="current">Blog</a></li>
            <li><a href="portfolio.php">图片详情</a></li>
            <li><a href="about.php">关于我们</a></li>
            <li><a href="contact.php">留言板</a></li>
            <li><a href="login.php#toregister">注册</a></li>
            <li><a href="login.php">退出</a></li>
            
        </ul>   
    
    </div> <!-- 最后 -->

    <div id="templatemo_left_column">
    
        <div id="templatemo_header">
        
            <div id="site_title">
                <h1><a href="#"><?php echo $_SESSION['name']?> <strong>Blog</strong><span>欢迎登陆</span></a></h1>
            </div><!-- 标题结束 -->
            
        </div> <!-- end of header -->  
        
        <div id="templatemo_sidebar">
        
            <div id="templatemo_rss">
            
                <a href="#">现在订阅 <br /><span>我们的博客订阅</span></a>
                
            </div>
            
            <h4>我的发表</h4>
            <ul class="templatemo_list">

           <?php

           foreach ($arl as $k => $v) {
               echo'<li><a href="yuedu.php?id='.$v['id'].'">'.$v["title"].'</a></li>';
           }

           ?>

                <!--<li><a href="#">今天立夏</a></li>
                <li><a href="#">狐狸的夏天第二季</a></li>
                <li><a href="#">甜蜜520</a></li>
                <li><a href="#">国产大飞机首飞</a></li>
                <li><a href="#">路飞0505生日快乐</a></li>
                <li><a href="#">沙尘暴</a></li>-->
            </ul>
            
            <div class="cleaner_h40"></div>
            
            <h4>文章分类</h4>
            <ul class="templatemo_list">

            <?php
            foreach ($arll as $k => $v) {
                echo"<li><a href='fenlw.php?id=".$v['id']."'>{$v['fenlei']}</a></li>";
            }

            ?>

                <!--<li><a href="#">奔跑的Jessica呀</a></li>
                <li><a href="#">大橙子精</a></li>
                <li><a href="#">是我本人</a></li>
                <li><a href="#">好喜欢你</a></li>
                <li><a href="#">王博文</a></li>
                <li><a href="#">182天，数不清</a></li>
                <li><a href="#">苏乔Suril</a></li>
                <li><a href="#">废丅叽</a></li>
                <li><a href="#">卡里妖</a></li>
                <li><a href="#">实力迷姐</a></li>-->
            </ul>
            
        </div> <!-- end of templatemo_sidebar --> 
    
    </div> <!-- end of templatemo_left_column -->